import logging.config
import yaml
from pathlib import Path
file_path = Path('~/.nvim/py_env/log_config.yaml')
with open(file_path.expanduser(), 'r', encoding = 'utf-8') as f:
    config = yaml.safe_load(f.read())
    #  print(config)
    logging.config.dictConfig(config)
    logger = logging.getLogger('file')
    vim_logger = logging.getLogger('NVIM')
